package ua.dogar.threads;

import ua.dogar.vectors.Vector;

public class VectorReaderThread extends Thread {
	Vector vec;
	public VectorReaderThread(Vector vec) {
		this.vec = vec;
	}

	@Override
	public  void run() {
		for (int i = 0; i < vec.getLength(); i++) {
			System.out.println("Read:" + vec.getElement(i) + " from position " + i);
		}
	
	}
}
